public abstract class MyMath
{
    public static boolean isEqualDouble(double a,double b)
    {
        return compareDouble(a,b)==0;
    }

    public static int compareDouble(double a,double b)
    {
        if(Math.abs(a-b)<1e-4)
            return 0;
        return a-b>0?1:-1;
    }
    public static int compareDouble(double a)
    {
        return compareDouble(a,0);
    }
}
